package com.example.shoppingmall.service;

import com.example.shoppingmall.dao.BillofladingMapper;
import com.example.shoppingmall.pojo.Billoflading;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class BillofladingService{
    @Autowired
    BillofladingMapper billofladingMapper;

    public List<Billoflading> getBillListAll(String stroe, String status, String time, String numberfordelivery, String orderno, String bname, String bphone, String btypeId, Integer pageno, Integer pageSize) {
        return billofladingMapper.getBillListAll(stroe, status, time, numberfordelivery, orderno, bname, bphone, btypeId, pageno, pageSize);
    }

    public int bcount(String numberfordelivery, String orderno, String bname, String bphone, String btypeId) {
        return billofladingMapper.bcount(numberfordelivery, orderno, bname, bphone, btypeId);
    }

    public Billoflading selbill(Integer id){
        return billofladingMapper.selbill(id);
    }

    public int billsuccess(Integer id){
        return billofladingMapper.billsuccess(id);
    }
}
